package cn.lh.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private Boolean success;
    private Object data;

    public static JsonResult set(Boolean success, Object data) {
        return new JsonResult(success, data);
    }
}
